package com.aiyige.model;

/**
 * 修改手机号请求model
 */
public class ChangePhoneNumberModel {
    private String oldMobile;
    private String oldCode;
    private String newMobile;
    private String newCode;

    private ChangePhoneNumberModel(Builder builder) {
        setOldMobile(builder.oldMobile);
        setOldCode(builder.oldCode);
        setNewMobile(builder.newMobile);
        setNewCode(builder.newCode);
    }

    public ChangePhoneNumberModel() {
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getOldMobile() {
        return oldMobile;
    }

    public void setOldMobile(String oldMobile) {
        this.oldMobile = oldMobile;
    }

    public String getOldCode() {
        return oldCode;
    }

    public void setOldCode(String oldCode) {
        this.oldCode = oldCode;
    }

    public String getNewMobile() {
        return newMobile;
    }

    public void setNewMobile(String newMobile) {
        this.newMobile = newMobile;
    }

    public String getNewCode() {
        return newCode;
    }

    public void setNewCode(String newCode) {
        this.newCode = newCode;
    }

    public static final class Builder {
        private String oldMobile;
        private String oldCode;
        private String newMobile;
        private String newCode;

        private Builder() {
        }

        public Builder oldMobile(String val) {
            oldMobile = val;
            return this;
        }

        public Builder oldCode(String val) {
            oldCode = val;
            return this;
        }

        public Builder newMobile(String val) {
            newMobile = val;
            return this;
        }

        public Builder newCode(String val) {
            newCode = val;
            return this;
        }

        public ChangePhoneNumberModel build() {
            return new ChangePhoneNumberModel(this);
        }
    }
}
